package test;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

//import org.ini4j.Wini;

import defectsim.Util;
import repast.simphony.space.continuous.NdPoint;

public class testMIC {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		NdPoint p1 = new NdPoint(19,3);
		NdPoint p2 = new NdPoint(1,1);
		double d = Util.calculateMICAngle(p1, p2, 20);
		System.out.println(d * 180 / Math.PI);
		try {
			sample02("deneme5.dat");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
	public static void sample02(String filename) throws IOException
    {
		BufferedWriter out = null;
		out = new BufferedWriter(new FileWriter(filename));
		out.close();
//        Wini ini = new Wini(new File(filename));
//
//        ini.put("sleepy", "age", 55);
//        ini.put("sleepy", "weight", 45.6);
//        ini.store();
    }
}
